<template>
  <el-input v-model="input" style="width: 240px" placeholder="Please input" />
</template>

<script lang="ts" setup>
  import { ref, watchEffect } from 'vue';

  const props = defineProps<{
    modelValue: string;
  }>();

  const input = ref('');

  watchEffect(() => {
    input.value = props.modelValue;
  });
</script>
